'use strict';

module.exports = app => {
  const { STRING, INTEGER, TEXT, DATE } = app.Sequelize;
  return app.model.define('friends', {
    id: { type: STRING, primaryKey: true },
    username: STRING(255),
    avatar: TEXT,
    url: STRING(255),
    is_check: INTEGER,
    create_time: DATE,
  }, {
    timestamps: false, // 自动增加创建时间
    tableName: 'friends', // 设置表名称
  });
};
